<%@ Page Language="VB" MasterPageFile="~/AdminMasterPage.master" AutoEventWireup="false" 
CodeFile="Add_Riders.aspx.vb" Inherits="Admin_Add_Riders" title="CIMS" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table border="0" cellpadding="0" cellspacing="0" width="580">
        <tr><td>
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td style="font-size: 10pt; width: 110px; font-family: Verdana; height: 25px;" align="left">
                        &nbsp;Broker Name:</td>
                    <td style="width: 150px; height: 25px;" align="left">
                        <asp:DropDownList ID="broker_cmb" runat="server" Width="288px" TabIndex="1" AutoPostBack="True">
                        </asp:DropDownList></td>                    
                </tr>
                <tr>
                    <td style="font-size: 10pt; width: 110px; font-family: Verdana; height: 25px;" align="left">
                        &nbsp;Provider Name:</td>
                    <td style="width: 150px; height: 25px;" align="left">
                        <asp:DropDownList ID="provider_cmb" runat="server" Width="288px" TabIndex="2" AutoPostBack="True">
                        </asp:DropDownList></td>                    
                </tr>
                <tr>
                    <td style="font-size: 10pt; width: 110px; font-family: Verdana; height: 25px;" align="left">
                        &nbsp;Product Name:</td>
                    <td style="width: 210px; height: 25px;" align="left">
                        <asp:DropDownList ID="product_cmb" runat="server" Width="288px" TabIndex="3" AutoPostBack="True">
                        </asp:DropDownList></td>                    
                </tr>
            </table>
        </td></tr>        
    </table>
    <asp:Panel ID="AddEdit_Panel" runat="server"  Visible="false" >
    <table border="0" cellpadding="0" cellspacing="0" width="580">    
        <tr><td>
            <table border="0" cellpadding="0" cellspacing="0" width="100%" style="height: 40px">
                <tr>
                    <td style="font-size: 10pt; width: 110px; font-family: Verdana" align="left">
                        &nbsp;Rider Code:</td>
                    <td style="width: 150px" align="left">
                        <asp:TextBox ID="Code_txt" runat="server" Width="136px" TabIndex="4"></asp:TextBox></td>                    
                    <td style="font-size: 10pt; width: 110px; font-family: Verdana" align="left">
                        &nbsp;Rider Name:</td>
                    <td style="width: 210px" align="left">
                        <asp:TextBox ID="Name_txt" runat="server" Width="168px" TabIndex="5"></asp:TextBox></td>                    
                </tr>
            </table>
        </td></tr>
    </table>
    <table border="0" cellpadding="0" cellspacing="0" width="580">        
        <tr><td>
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td align="right" style="height: 24px">
                        <asp:Button ID="Save_btn" runat="server" Text="Save" BackColor="Gainsboro" Font-Names="Verdana" Width="64px" TabIndex="6" />&nbsp;
                        <asp:Button ID="Cancel_btn" runat="server" Text="Back" BackColor="Gainsboro" Font-Names="Verdana" Width="64px" TabIndex="7" CausesValidation="False" />
                        &nbsp;&nbsp;
                    </td>                    
                </tr>
            </table>
        </td>
       </tr>
    </table>
    </asp:Panel>
    
    <br />

    <table cellpadding="0" cellspacing="0" width="580" style="font-family:Verdana; font-size:10pt">
        <tr>
        <td align="left" style="height: 16px"> Riders: 
            <asp:Label ID="Results_lbl" runat="server"></asp:Label></td>
        <td align="right" style="height: 16px;"> 
            <asp:LinkButton ID="Add_btn" runat="server" ForeColor="Black"
                TabIndex="8" Font-Underline="True" CausesValidation="False">Add New Rider</asp:LinkButton></td>
        </tr>
    </table>
        
    <table cellpadding="0" cellspacing="0">
        <tr><td style="width: 580px; height: 271px;">
            <asp:DataGrid ID="DataGrid" runat="server" AutoGenerateColumns="False" BackColor="White"
                BorderColor="White" BorderStyle="Solid" BorderWidth="1px" CellPadding="1" Font-Names="Verdana" Width="580px" Font-Size="Small" TabIndex="9" AllowSorting="True" AllowPaging="True">
                <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
                <SelectedItemStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
                <PagerStyle BackColor="White" ForeColor="#330099" HorizontalAlign="Left" Mode="NumericPages" PageButtonCount="9" Position="Top" />
                <AlternatingItemStyle BackColor="#D7DADF" />
                <ItemStyle BackColor="#F2F3F5" ForeColor="Black" />
                <HeaderStyle BackColor="#105BA4" Font-Bold="True" ForeColor="White" />
                <Columns>
                    <asp:BoundColumn HeaderText="Rider Code" DataField="prem_rider_cd">
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Left" />
                        <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                    </asp:BoundColumn>
                    <asp:BoundColumn HeaderText="Rider Name" DataField="prem_rider_desc">
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Left" />
                        <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                    </asp:BoundColumn>
                    <asp:ButtonColumn CommandName="Edit" Text="Edit">
                        <HeaderStyle Width="40px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" />
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                    </asp:ButtonColumn>
                    <asp:TemplateColumn>
                        <HeaderStyle Width="45px" />
                        <ItemTemplate>
                            <asp:LinkButton ID="Delete_btn" runat="server" CommandName="Delete" ForeColor="Black"  CausesValidation="false">Delete</asp:LinkButton>
                            <ajaxToolkit:ConfirmButtonExtender
                                ID="ConfirmButtonExtender1" runat="server" ConfirmText="Continue delete?" TargetControlID="Delete_btn">
                            </ajaxToolkit:ConfirmButtonExtender>
                        </ItemTemplate>
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                    </asp:TemplateColumn>
                    <asp:BoundColumn DataField="prdt_cd" Visible="False"></asp:BoundColumn>
                </Columns>
            </asp:DataGrid>
            <asp:ScriptManager id="ScriptManager1" runat="server">
            </asp:ScriptManager><asp:RequiredFieldValidator ID="rfv1" runat="server" ControlToValidate="broker_cmb"
                ErrorMessage="Broker Required" ForeColor="White" Text="."></asp:RequiredFieldValidator><asp:RequiredFieldValidator
                    ID="rfv2" runat="server" ControlToValidate="Provider_cmb" ErrorMessage="Provider Required"
                    ForeColor="White" Text="."></asp:RequiredFieldValidator><asp:RequiredFieldValidator
                        ID="rfv3" runat="server" ControlToValidate="Product_cmb" ErrorMessage="Product Required"
                        ForeColor="White" Text="."></asp:RequiredFieldValidator><asp:RequiredFieldValidator
                            ID="rfv4" runat="server" ControlToValidate="Code_txt" ErrorMessage="Rider Code Required"
                            ForeColor="White" Text="."></asp:RequiredFieldValidator><asp:RequiredFieldValidator
                                ID="rfv5" runat="server" ControlToValidate="Name_txt" ErrorMessage="Rider Name Required"
                                ForeColor="White" Text="."></asp:RequiredFieldValidator>
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
                ShowSummary="False" />
            <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server"
                TargetControlID="rfv1">
            </ajaxToolkit:ValidatorCalloutExtender>
            <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server"
                TargetControlID="rfv2">
            </ajaxToolkit:ValidatorCalloutExtender>
            <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" runat="server"
                TargetControlID="rfv3">
            </ajaxToolkit:ValidatorCalloutExtender>
            <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender4" runat="server"
                TargetControlID="rfv4">
            </ajaxToolkit:ValidatorCalloutExtender>
            <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender5" runat="server"
                TargetControlID="rfv5">
            </ajaxToolkit:ValidatorCalloutExtender>
            &nbsp;
        </td></tr>
    </table>        

</asp:Content>